package com.wealth.scsj.p_app.view.activity.wallet;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.wealth.scsj.p_app.R;
import com.wealth.scsj.p_app.utils.SkipUtils;
import com.wealth.scsj.p_app.view.activity.BaseActivity;


/**
 * 我的钱包首页
 */
public class MyWalletActivity extends BaseActivity implements View.OnClickListener {

    private TextView mMoneyTv;
    private RelativeLayout mMyRechargeRl;
    private RelativeLayout mMyWithdrawRl;
    /**
     * 解绑银行卡
     */
    private TextView mBankCardStateTv;
    private RelativeLayout mMyBankCard;
    private RelativeLayout mMoneyDetailLay;
    private RelativeLayout mMyShareprofit;
    /**
     * 修改
     */
    private TextView mPayPswStateTv;
    private RelativeLayout mMyPasswordLay;
    /**
     * 未认证
     */
    private TextView mAuthenticationStateTv;
    private RelativeLayout mRealNameAuthenticationRl;
    private RelativeLayout mMain;


    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_my_wallet);
//        ScreenAdapterTools.getInstance().loadView((ViewGroup) getWindow().getDecorView());
        //ScreenAdapterTools.getInstance().reset(this);//如果希望android7.0分屏也适配的话,加上这句
        initToolbar();
        setToolbarTitle("我的钱包");
        hasBack(true);
        initView();
    }

    @Override
    protected void initView() {

        mMoneyTv = (TextView) findViewById(R.id.money_tv);
        mMyRechargeRl = (RelativeLayout) findViewById(R.id.my_recharge_rl);
        mMyRechargeRl.setOnClickListener(this);
        mMyWithdrawRl = (RelativeLayout) findViewById(R.id.my_withdraw_rl);
        mMyWithdrawRl.setOnClickListener(this);
        mBankCardStateTv = (TextView) findViewById(R.id.bank_card_state_tv);
        mMyBankCard = (RelativeLayout) findViewById(R.id.my_bank_card);
        mMyBankCard.setOnClickListener(this);
        mMoneyDetailLay = (RelativeLayout) findViewById(R.id.money_detail_Lay);
        mMoneyDetailLay.setOnClickListener(this);

        mPayPswStateTv = (TextView) findViewById(R.id.pay_psw_state_tv);
        mMyPasswordLay = (RelativeLayout) findViewById(R.id.my_password_Lay);
        mMyPasswordLay.setOnClickListener(this);
        mAuthenticationStateTv = (TextView) findViewById(R.id.authentication_state_tv);
        mRealNameAuthenticationRl = (RelativeLayout) findViewById(R.id.real_name_authentication_rl);
        mRealNameAuthenticationRl.setOnClickListener(this);
        mMain = (RelativeLayout) findViewById(R.id.main);

    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.my_bank_card://预计收益
                // SkipUtils.toAddBankPicPage(this);
                break;
            case R.id.money_detail_Lay: //押金
                // SkipUtils.toBalance(this);
                break;

            case R.id.my_password_Lay://支付密码
                // SkipUtils.toPhoneCodeVerification(this, "pay");
                break;
            case R.id.real_name_authentication_rl://账单记录
                // SkipUtils.toRealNameAuthentication(this);
                break;
            case R.id.my_withdraw_rl://账单记录
                SkipUtils.toCashBalabce(this);
                break;


        }
    }


}
